#!/bin/sh
#
#  Test RunScript
#

TestName="bug-fatal-test"
JobName=backup

. scripts/functions

copy_test_confs

rm -f bin/susan-dir.conf
rm -f ${cwd}/tmp/RUN*log
/bin/cp -f scripts/susan-dir.conf.testrunscript bin/susan-dir.conf

rm -f ${cwd}/tmp/file-list
# ${cwd}/tmp/file-list doesn't exists
# echo "${cwd}/build/po" >${cwd}/tmp/file-list

start_test

cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
label volume=TestVolume001
@$out ${cwd}/tmp/RUN_BUG_FATAL.log
run job=BUG_FATAL yes
wait
messages
@sleep 1
st dir
quit
END_OF_DATA


run_susan
stop_susan

dstat=0
bstat=0
rstat=0

end_test
